package inventory.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author sxt
 * @since 2019-11-06
 */
public class Manager extends Model<Manager> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "manager_id", type = IdType.UUID)
    private String managerId;
    private String manager;
    private String pid;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date timeLimit;
    private Long maxNum;
    private Long tmpNum;
    private String password;
    private String salt;
    private String workId;
    private String status;



    public String getManagerId() {
        return managerId;
    }

    public void setManagerId(String managerId) {
        this.managerId = managerId;
    }

    public String getManager() {
        return manager;
    }

    public void setManager(String manager) {
        this.manager = manager;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public Date getTimeLimit() {
        return timeLimit;
    }

    public void setTimeLimit(Date timeLimit) {
        this.timeLimit = timeLimit;
    }

    public Long getMaxNum() {
        return maxNum;
    }

    public void setMaxNum(Long maxNum) {
        this.maxNum = maxNum;
    }

    public Long getTmpNum() {
        return tmpNum;
    }

    public void setTmpNum(Long tmpNum) {
        this.tmpNum = tmpNum;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public String getWorkId() {
        return workId;
    }

    public void setWorkId(String workId) {
        this.workId = workId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    protected Serializable pkVal() {
        return this.managerId;
    }

    @Override
    public String toString() {
        return "Manager{" +
                "managerId='" + managerId + '\'' +
                ", manager='" + manager + '\'' +
                ", pid='" + pid + '\'' +
                ", timeLimit=" + timeLimit +
                ", maxNum=" + maxNum +
                ", tmpNum=" + tmpNum +
                ", password='" + password + '\'' +
                ", salt='" + salt + '\'' +
                ", workId='" + workId + '\'' +
                ", status='" + status + '\'' +
                '}';
    }
}
